package com.nanbei.queue;

/**
 * @ClassDescription: 存放数据和优先级的类
 * @JdkVersion: 17
 * @Author: BaoShan.li
 * @Created: 2023/11/28 17:39
 */
public class Entry implements Priority{

    String value;
    int priority;


    public Entry(String value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    @Override
    public int getPriority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" +
                "value='" + value + '\'' +
                ", priority=" + priority +
                '}';
    }
}
